/**
* Created by Mkoa
*/
module.exports = function(sequelize, DataTypes) {
    return sequelize.define('score',{
                mid: {
                        type: DataTypes.INTEGER,
                        allowNull:false,
                        defaultValue:'0',
                        unique:false,
                        comment: '用户ID'
                      },
                cid: {
                        type: DataTypes.INTEGER,
                        allowNull:false,
                        defaultValue:'0',
                        unique:false,
                        comment: '课堂ID'
                      },
                score: {
                        type: DataTypes.INTEGER,
                        allowNull:false,
                        defaultValue:'0',
                        unique:false,
                        comment: '分数'
                      },
                person: {
                        type: DataTypes.STRING(20),
                        allowNull:false,
                        defaultValue:'0',
                        unique:false,
                        comment: '打分对象'
                      }}, {
        tableName:'mkoa_score',
        comment: '打分表',
        timestamps:true,
        indexes:[],
        paranoid:false,
        charset: 'utf8',
        collate: 'utf8_general_ci'
    });
};